package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 房间表 room
 *
 * @author houyijun
 * @date 2019-01-24
 */
public class Room extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 创建人 */
	private Integer userId;
	/** 环信群id */
	private String huanxinGroupId;
	/** 房间名称 */
	private String name;
	/** 类型（1对战房间，2踩雷房间） */
	private Integer type;
	/** 是否有福利 */
	private Integer isWelfare;
	/** 金额范围最小 */
	private BigDecimal moneyMin;
	/** 金额范围最大 */
	private BigDecimal moneyMax;
	/** 红包数量 */
	private Integer amount;
	/** 赔率 */
	private BigDecimal odds;
	/** 房间头像 */
	private String roomImg;
	/** 福利类型（baozi,shunzi,yifen） */
	private String welfareType;
	/** 0最大处罚，-1最小处罚 */
	private String punishType;
	/** 房间公告 */
	private String notice;
	/** 是否是个人（0官方，1个人） */
	private Integer personal;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** 删除标志 0未删除 2已删除 */
	private Integer delFlag;

	/**
	 * 设置密码铭文
	 */
	private String password;

	/**
	 * 房间编号
	 */
	private String roomNumber;

	/**
	 * 群主id
	 */
	private Integer roomBossId;

	/**
	 * 是否是密码房
	 */
	private Integer isPassword;

	/**
	 * 用户
	 */
	private User user;

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setUserId(Integer userId){
		this.userId = userId;
	}

	public Integer getUserId(){
		return userId;
	}
	public void setHuanxinGroupId(String huanxinGroupId){
		this.huanxinGroupId = huanxinGroupId;
	}

	public String getHuanxinGroupId(){
		return huanxinGroupId;
	}
	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return name;
	}
	public void setType(Integer type){
		this.type = type;
	}

	public Integer getType(){
		return type;
	}
	public void setIsWelfare(Integer isWelfare){
		this.isWelfare = isWelfare;
	}

	public Integer getIsWelfare(){
		return isWelfare;
	}
	public void setMoneyMin(BigDecimal moneyMin){
		this.moneyMin = moneyMin;
	}

	public BigDecimal getMoneyMin(){
		return moneyMin;
	}
	public void setMoneyMax(BigDecimal moneyMax){
		this.moneyMax = moneyMax;
	}

	public BigDecimal getMoneyMax(){
		return moneyMax;
	}
	public void setAmount(Integer amount){
		this.amount = amount;
	}

	public Integer getAmount(){
		return amount;
	}
	public void setOdds(BigDecimal odds){
		this.odds = odds;
	}

	public BigDecimal getOdds(){
		return odds;
	}
	public void setRoomImg(String roomImg){
		this.roomImg = roomImg;
	}

	public String getRoomImg(){
		return roomImg;
	}
	public void setWelfareType(String welfareType){
		this.welfareType = welfareType;
	}

	public String getWelfareType(){
		return welfareType;
	}
	public void setPunishType(String punishType){
		this.punishType = punishType;
	}

	public String getPunishType(){
		return punishType;
	}
	public void setNotice(String notice){
		this.notice = notice;
	}

	public String getNotice(){
		return notice;
	}
	public void setPersonal(Integer personal){
		this.personal = personal;
	}

	public Integer getPersonal(){
		return personal;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public Date getUpdateTime(){
		return updateTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRoomNumber() {
		return roomNumber;
	}

	public void setRoomNumber(String roomNumber) {
		this.roomNumber = roomNumber;
	}

	public Integer getRoomBossId() {
		return roomBossId;
	}

	public void setRoomBossId(Integer roomBossId) {
		this.roomBossId = roomBossId;
	}

	public Integer getIsPassword() {
		return isPassword;
	}

	public void setIsPassword(Integer isPassword) {
		this.isPassword = isPassword;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("userId", getUserId())
				.append("huanxinGroupId", getHuanxinGroupId())
				.append("name", getName())
				.append("type", getType())
				.append("isWelfare", getIsWelfare())
				.append("moneyMin", getMoneyMin())
				.append("moneyMax", getMoneyMax())
				.append("amount", getAmount())
				.append("odds", getOdds())
				.append("roomImg", getRoomImg())
				.append("welfareType", getWelfareType())
				.append("punishType", getPunishType())
				.append("notice", getNotice())
				.append("personal", getPersonal())
				.append("createTime", getCreateTime())
				.append("updateTime", getUpdateTime())
				.append("delFlag", getDelFlag())
				.append("password", getPassword())
				.append("roomNumber",getRoomNumber())
				.append("roomBossId",getRoomBossId())
				.append("isPassword",getPassword())
				.toString();
	}
}
